package com.admin.domain.modle;

import java.io.Serializable;
import java.util.UUID;

/**
 * description 预告页面轮播图
 * User: WeiDa
 * Date: 2017-4-11
 * Time: 17:24
 */
public class Banner implements Serializable {

    /**
     * 唯一资源编码
     */
    private String id = UUID.randomUUID().toString();

    /**
     * 名称
     */
    private String title;

    /**
     * 链接url
     */
    private String url;

    /**
     * 图片url
     */
    private String imgUrl;

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Banner banner = (Banner) o;

        return id != null ? id.equals(banner.id) : banner.id == null;

    }

    @Override
    public int hashCode() {
        return id != null ? id.hashCode() : 0;
    }
}
